
<!DOCTYPE HTML>
<html style="height: 100%;">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title></title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    <meta name="author" content="" />
    <link rel="shortcut icon" type="image/x-icon" href = "../favicon.ico" />
    <link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="../css/style.min.css" />
</head>
<body>

<header  class="lyear-header text-center" style="height: 100%;">
    <div class="lyear-header-container">
        <div  class="lyear-mask"></div>
        <h1 id="name" class="lyear-blogger pt-lg-4 mb-0"><a href="index.html"></a></h1>
        <nav class="navbar navbar-expand-lg">
            <a class="navbar-toggler" data-toggle="collapse" data-target="#navigation" aria-controls="navigation" aria-expanded="false" aria-label="Toggle navigation">
                <div>
                    <div class="lyear-hamburger">
                        <div class="hamburger-inner"></div>
                    </div>
                </div>
            </a>

            <div id="navigation">
                <div class="profile-section pt-3 pt-lg-0">
                    <img class="profile-image mb-3 rounded-circle mx-auto" id="headImage" src="../images/author.jpg" width="120" height="120" alt="头像" >
                    <div class="lyear-sentence mb-3">生命不息，运动不止，尽职尽责，让这家健身房再次伟大。</div>
                    <div class="lyear-sentence mb-3" id="signature_info"></div>
                    <hr>
                </div>

                <ul class="navbar-nav flex-column text-center">
                    <li class="nav-item active">
                        <a class="nav-link" href="adminBrowseTrainers.html" target="center">教练浏览</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="adminBrowseUsers.html" target="center">用户浏览</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="adminBrowseCourse.html" target="center">课程浏览</a>
                    </li>
                </ul>
            </div>
        </nav>
    </div>
</header>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/jquery.nicescroll.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/main.min.js"></script>

<script src="https://cdn.staticfile.org/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>

<script type="text/javascript">

    jQuery(document).ready(function (){
        /*let currentUserId = $.cookie("userid");

        jQuery.post("/getUserInfoById", {"userId": currentUserId}, function(rst) {

            //头像
            let imagePath = rst.userImage;
            $("#headImage").attr('src',imagePath);

        })*/
    })


    $(function() {

        var target = $.cookie("usr_no");
        $.post("/getdectlr", {"target": target}, function (rst) {
            var currentImage = "";
            var currentImage2 = "";
            if (rst == "type1") {
                currentImage = "../images/blog/11.png";
                currentImage2 = "../images/blog/11.jpg";
            }
            if (rst == "type2") {
                currentImage = "../images/blog/14.png";
                currentImage2 = "../images/blog/13.jpg";
            }
            if (rst == "type3") {
                currentImage = "../images/blog/12.png";
                currentImage2 = "../images/blog/2_c.jpg";
            }
            if (rst == "type4") {
                currentImage = "../images/blog/9.jpg";
                currentImage2 = "../images/blog/9.jpg";
            }
            $("header.lyear-header").css({"background-image": "url(" + currentImage2 + ")"});
        });

    });

</script>
</body>
</html>